package com.ptadmin.report.util;

import java.util.HashMap;
import java.util.Map;

public class ReportMapping {
	
	static Map<String, ReportExt> reportExtMapping = new HashMap<String, ReportExt>();
	static Map<String, ReportCategory> reportCategoryMapping = new HashMap<String, ReportCategory>();
	
	static {
		reportExtMapping.put("_GET_FLAT_FILE_OPEN_LISTINGS_DATA_", ReportExt.Tab_Delimited);
		reportExtMapping.put("_GET_MERCHANT_LISTINGS_ALL_DATA_", ReportExt.Tab_Delimited);
		reportExtMapping.put("_GET_MERCHANT_LISTINGS_INACTIVE_DATA_", ReportExt.Tab_Delimited);
		reportExtMapping.put("_GET_XML_BROWSE_TREE_DATA_", ReportExt.Xml);
		
		reportCategoryMapping.put("_GET_FLAT_FILE_OPEN_LISTINGS_DATA_", ReportCategory.Invetory);
		reportCategoryMapping.put("_GET_MERCHANT_LISTINGS_ALL_DATA_", ReportCategory.Invetory);
		reportCategoryMapping.put("_GET_XML_BROWSE_TREE_DATA_", ReportCategory.BrowseTreeNode);
	}
	
	public static ReportExt getReportExt(String reportType) {
		return reportExtMapping.get(reportType);
	}
	
	public static ReportCategory getReportCategory(String reportType) {
		return reportCategoryMapping.get(reportType);
	}
}
